<include file="header" />
<include file="leftmenu" />
<link href="__PUBLIC__/home/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/waitMe.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/webuploader.css" />
<!--todo 添加类-->
<link href="__PUBLIC__/home/css/uploads_pic/cropper.min.css" rel="stylesheet" />
<link href="__PUBLIC__/home/css/uploads_pic/main.css" rel="stylesheet" />
<div class="right" id="tab1">
	<div class="certification_title">
		<a href="/user/index.html" title="帐号信息">帐号信息</a>&nbsp;&gt;&nbsp;帐号认证
	</div>

	<div class="certification_list">
		<a onclick="setTab('con_one_1',this,2)" class="hr _tab_box">企业认证</a>
		<a onclick="setTab('con_one_2',this,1)" class="_tab_box">个人认证</a>
	</div>

	<div class="certification">
		<!--营业执照-->
		<div id="con_one_1" class="_tab_colum">
			<div class="column">
				<div class="field">公司名称:</div>
				<input name="enterprise_name" class="kt1 _enterprise_name _blur_rz" maxlength="50" value="{$info.enterprise_name}" id="enterprise_name" opt-tip="请输入企业名称" placeholder="请输入公司名称" />
				<div class="error hide" id="enterprise_name_id">
					<i></i><span id="enterprise_name_msg"></span>
				</div>
			</div>
			<div class="column">
				<div class="field">官方网站:</div>
				<input name="web_site" class="kt1 _web_site" maxlength="50" value="{$info.web_site}" opt-tip="请输入官方网站" placeholder="请输入官方网站(选填)" />
			</div>
			<div class="column">
				<div class="field">联系人:</div>
				<input name="contacts" id="contacts" class="kt1 _contacts _blur_rz" maxlength="50" value="{$info.contacts}" opt-tip="请输入联系人姓名" placeholder="请输入联系人姓名" />
				<div class="error hide" id="contacts_id">
					<i></i><span id="contacts_msg"></span>
				</div>
			</div>
			<div class="column">
				<div class="field">营业执照编号:</div>
				<input name="business_licence_no" id="business_licence_no" class="kt1 _business_licence_no _blur_rz" maxlength="50" value="{$info.business_licence_no}" opt-tip="请输入营业执照编号" placeholder="请输入营业执照编号" />
				<div class="error hide" id="business_licence_no_id">
					<i></i><span id="business_licence_no_msg"></span>
				</div>
			</div>

			<div class="column">
				<div class="field">营业执照照片:</div>
				<!--todo xj 图片上传 start-->
				<div class="fl">
					<div id="crop-avatar">
						<!-- Current avatar -->
						<div class="avatar-view fl" title="图片上传" style="width:auto;height:auto">
							<img src="__PUBLIC__/home/images/scan.jpg" class="fl" alt="Avatar" style="width: auto;height: 200px" />
							<input type="hidden" value="" class="_service_logo" />
						</div>

						<!-- Cropping modal -->
						<div class="modal fade" id="avatar-modal" aria-hidden="true" aria-labelledby="avatar-modal-label" role="dialog" tabindex="-1">
							<div class="modal-dialog modal-lg">
								<div class="modal-content">
									<form class="avatar-form" action="/common/imageUpload.html" enctype="multipart/form-data" method="post">
										<div class="modal-header">
											<button class="close" data-dismiss="modal" type="button">&times;</button>
											<h4 class="modal-title" id="avatar-modal-label">营业执照照片上传</h4>
										</div>
										<div class="modal-body">
											<div class="avatar-body">

												<!-- Upload image and data -->
												<div class="avatar-upload">
													<input class="avatar-src" name="avatar_src" type="hidden" />
													<input class="avatar-data" name="avatar_data" type="hidden" />
													<label for="avatarInput">图片选择</label>
													<input class="avatar-input" id="avatarInput" name="avatar_file" type="file" />
													<input name="_avatar_type_value" type="hidden" value="0" />
													<!-- 取消压缩 -->
													<div class="avatar-upload-tip"></div>
												</div>

												<!-- Crop and preview -->
												<div class="row">
													<div class="col-sm-8">
														<div class="avatar-wrapper"></div>
													</div>
													<div class="col-sm-4 center-block">
														<div style="padding:0 15px;">

															<div class="avatar-preview preview-lg container" title="图片上传">
																<img src="__PUBLIC__/home/images/scan.jpg" />
															</div>
															<div class="avatar-preview preview-md container" title="图片上传">
																<img src="__PUBLIC__/home/images/scan.jpg" />
															</div>

															<div class="avatar-btns">
																<div class="col-md-11 container">
																	<button class="btn btn-primary btn-block avatar-save" type="submit">完成</button>
																</div>
															</div>
														</div>
													</div>
												</div>
												<script>
													function displayDate() {
														document.getElementById("avatarInput").click();
													}
												</script>
											</div>
										</div>
									</form>
								</div>
							</div>
						</div>
						<!-- /.modal -->

						<!-- Loading state -->
						<div class="loading" aria-label="Loading" role="img" tabindex="-1"></div>
					</div>
					<div class="upload fl">图片大小不超过1M，格式仅支持jpg，png，gif</div>
				</div>
				<!--todo xj 图片上传 end-->
				<div id="business_licence_pic_id" class="error hide" style="margin-top: 40px">
					<i></i><span id="business_licence_pic_msg"></span>
				</div>
			</div>

			<div class="column">
				<div class="field">手机号码:</div>
				<input name="contacts_mobile" class="kt3 _contacts_mobile _blur_rz" id="contacts_mobile" maxlength="50" value="{$info.contacts_mobile}" opt-tip="请输入手机号码" placeholder="请输入手机号码" />
				<div class="error hide" id="contacts_mobile_id">
					<i></i><span id="contacts_mobile_msg"></span>
				</div>
			</div>

			<div class="column">
				<div class="field"></div>
				<button type="button" name="sc" id="register_enterprise" class="confirm _enterprise_auth_submit">提交认证</button>
			</div>

		</div>
		<!--身份证-->
		<div id="con_one_2" class="hide _tab_colum">
			<div class="column">
				<div class="field">姓名:</div>
				<input name="user_name" class="kt1 _user_name _blur_rz" id="user_name" maxlength="50" value="{$info.user_name}" opt-tip="请输入姓名" placeholder="请输入姓名" />
				<div class="error hide" id="user_name_id">
					<i></i><span id="user_name_msg"></span>
				</div>
			</div>
			<div class="column">
				<div class="field">身份证号：</div>
				<input name="identity_cards_no" class="kt1 _identity_cards_no _blur_rz" maxlength="50" id="identity_cards_no" value="{$info.identity_cards_no}" opt-tip="请输入身份证号码" placeholder="请输入身份证号码" />
				<div class="error hide" id="identity_cards_no_id">
					<i></i><span id="identity_cards_no_msg"></span>
				</div>
			</div>
			<div class="column">
				<div class="field">身份证照片:</div>
				<!-- todo 身份证上传 start-->
				<div class="fl">

					<div id="sfzsc">
						<!-- Current avatar -->
						<div class="avatar-view fl" title="图片上传" style="width:auto;height:auto">
							<img src="__PUBLIC__/home/images/scan.jpg" class="fl" alt="Avatar" style="width: auto;height: 200px" />
							<input type="hidden" value="" class="_service_logo" />
						</div>

						<!-- Cropping modal -->
						<div class="modal fade" id="avatar-modal" aria-hidden="true" aria-labelledby="avatar-modal-label" role="dialog" tabindex="-1">
							<div class="modal-dialog modal-lg">
								<div class="modal-content">
									<form class="avatar-form" action="/common/imageUpload.html" enctype="multipart/form-data" method="post">
										<div class="modal-header">
											<button class="close" data-dismiss="modal" type="button">&times;</button>
											<h4 class="modal-title" id="avatar-modal-label">身份证上传</h4>
										</div>
										<div class="modal-body">
											<div class="avatar-body">

												<!-- Upload image and data -->
												<div class="avatar-upload">
													<input class="avatar-src" name="avatar_src" type="hidden" />
													<input class="avatar-data" name="avatar_data" type="hidden" />
													<label for="avatarInput">图片选择</label>
													<input class="avatar-input" id="avatarInput" name="avatar_file" type="file" />
													<input name="_avatar_type_value" type="hidden" value="0" />
													<!-- 取消压缩 -->
													<div class="avatar-upload-tip"></div>
												</div>

												<!-- Crop and preview -->
												<div class="row">
													<div class="col-sm-8">
														<div class="avatar-wrapper"></div>
													</div>
													<div class="col-sm-4 center-block">
														<div style="padding:0 15px;">

															<div class="avatar-preview preview-lg container" title="图片上传">
																<img src="__PUBLIC__/home/images/scan.jpg" />
															</div>
															<div class="avatar-preview preview-md container" title="图片上传">
																<img src="__PUBLIC__/home/images/scan.jpg" />
															</div>

															<div class="avatar-btns">
																<div class="col-md-11 container">
																	<button class="btn btn-primary btn-block avatar-save" type="submit">完成</button>
																</div>
															</div>
														</div>
													</div>
												</div>
												<script>
													function displayDate() {
														document.getElementById("avatarInput").click();
													}
												</script>
											</div>
										</div>
										<!-- <div class="modal-footer">
                                          <button class="btn btn-default" data-dismiss="modal" type="button">Close</button>
                                        </div> -->
									</form>
								</div>
							</div>
						</div>
						<!-- /.modal -->

						<!-- Loading state -->
						<div class="loading" aria-label="Loading" role="img" tabindex="-1"></div>
					</div>
					<div class="upload fl">图片大小不超过1M，格式仅支持jpg，png，gif</div>

				</div>
				<!-- todo 身份证上传 end-->
				<div class="error hide" id="identity_cards_pic_id" style="margin-top: 40px">
					<i></i><span id="identity_cards_pic_msg"></span>
				</div>
				<div class="column">
					<div class="field">手机号码:</div>
					<input name="user_mobile" class="kt3 _user_mobile _blur_rz" id="user_mobile" maxlength="50" value="{$info.user_mobile}" opt-tip="请输入手机号码" placeholder="请输入手机号码" />
					<div class="error hide" id="user_mobile_id">
						<i></i><span id="user_mobile_msg"></span>
					</div>
				</div>
				<div class="column">
					<div class="field"></div>
					<button type="button" name="sc" id="register_user" class="confirm _user_auth_submit">提交认证</button>
				</div>
			</div>
		</div>
	</div>

	<input type="hidden" value="2" class="_user_type" />
	<!-- 用户认证类型 1：个人认证 2 企业认证 ,默认是企业认证-->
	<input type="hidden" value="{$auth_id}" class="_auth_id" />
	<input type="hidden" value="{$info.auth_type}" class="_old_auth_type" />

</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/userauth.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/auth_common.js"></script>
<script type="text/javascript" src="__PUBLIC__/home/js/webuploader.js"></script>
<script src="/Public/home/js/jquery.1.11.min.js"></script>
<script src="__PUBLIC__/home/js/uploads_pic/cropper.min.js"></script>
<script src="__PUBLIC__/home/js/main.js"></script>
<script src="__PUBLIC__/home/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/home/js/waitMe.js"></script>
</body>

</html>